#   方法1.直接索引
t=tuple(('hello',98,[23,'world']))
print(t[0])
print(t[1])
print(t[2])
#print(t[3])     #   IndexError: tuple index out of range
#   方法2.遍历元组
for item in t:
    print(item)

